<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../libs/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="../../libs/app.css" />
		<link href="../../css/main.css" rel="stylesheet" />
		<link href="../../css/assess-d.css" rel="stylesheet" />
	</head>

	<body>
		<div class="head">
			<img class="mui-action-back" src="../../images/all-left.png" alt="">
			<p>公积金贷</p>
		</div>
		<div class="content">
			<!--列表-->
			<div class="list">
				<!--缴存满个月-->
				<div class="mui-table-view">
					<div class="mui-table-view-cell">
						<a href="#showlx">
							<div class="lx-le">缴存满个月</div>
							<div id="info-lx" class="lx-ri payment-yj">选择</div>
						</a>
					</div>
				</div>
				<div id="showlx" class="showlx mui-popover mui-popover-action mui-popover-bottom" style="background-color: #efeef4">
					<ul class="mui-table-view" style="margin: 0px;border-radius: 0px;font-size: 14px;">
						<li class="mui-table-view-cell popover-bottom">
							<a href="#">6个月</a>
						</li>
						<li class="mui-table-view-cell popover-bottom">
							<a href="#">12个月</a>
						</li>
					</ul>
					<ul class="mui-table-view " style="margin: 10px 0px 0px 0px;border-radius: 0px;">
						<li class="mui-table-view-cell popover-bottom-remove">
							<a href="#showlx">取消</a>
						</li>
					</ul>
				</div>
				<!--税前总收入元-->
				<div class="mui-table-view">
					<div class="mui-table-view-cell">
						<div class="lx-le">缴存基数</div>
						<div class="lx-ri"><span class="bd-m lx-ri">元</span><input class="bd-ri price" placeholder="单行输入" value="" type="number" /></div>
					</div>
				</div>

				<!--还款期限期-->
				<!--<div id="xl-y" class=" mui-table-view">
					<div class="mui-table-view-cell">
						<a href="#already-pm">
							<div class="lx-le">还款期限期</div>
							<div id="payment-y" class="payment lx-ri infoone-qx">选择</div>
						</a>
					</div>
				</div>
				<div id="already-pm" class="payment-y mui-popover mui-popover-action mui-popover-bottom" style="background-color: #efeef4">
					<ul class="mui-table-view" style="margin: 0px;border-radius: 0px;font-size: 14px;">
						<li class="mui-table-view-cell popover-bottom">
							<a href="#">12期</span>
							</a>
						</li>
						<li class="mui-table-view-cell popover-bottom">
							<a href="#">24期</a>
						</li>
						<li class="mui-table-view-cell popover-bottom">
							<a href="#">36期</a>
						</li>
						<li class="mui-table-view-cell popover-bottom">
							<a href="#">48期</a>
						</li>
						<li class="mui-table-view-cell popover-bottom">
							<a href="#">60期</a>
						</li>
					</ul>
					<ul class="mui-table-view" style="margin: 10px 0px 0px 0px;border-radius: 0px;">
						<li class="mui-table-view-cell popover-bottom-remove">
							<a href="#already-pm">取消</a>
						</li>
					</ul>
				</div>-->

			</div>
			<!--按钮-->
			<div class="buttons">
				<!--<div class="add add-button">继续添加</div>-->
				<div class="add add-submit" id="evaluate">提交</div>
			</div>
		</div>
		<script src="../../libs/mui.min.js"></script>
		<script src="../../js/jquery-3.1.1.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../js/url.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../js/assess-public.js"></script>
		<script type="text/javascript">
			//             提交
				var params = new ToArr();
			$('#evaluate').on('tap', function() {
				//各参数数组			
				var month = params.rechange('.payment-yj', "个月");
				var price = params.rechange('.price');
//				var stage = params.rechange('.infoone-qx', "期");
				var yuan = /^[0-9]+(.[0-9]{1,4})?$/;
				
				//将各参数数组转换成符合格式的请求参数
				var arrObj = { month: month, price: price };//, stage: stage
				var resParam = params.getParams(arrObj);
				
				for(var i = 0; i < resParam.length; i++) {
					if((!yuan.test(price[i])) || price[i] == undefined || price == null) {
						mui.toast('请检查您税前总收入...');
						return false;
					} else if(month[i] == undefined || month[i] == null ) {//|| stage[i] == undefined || stage[i] == null || stage[i] == '选择'
						mui.toast('请把信息填充完整...');
						return false;
					} else {
						if(i===resParam.length-1){
//							plus.nativeUI.showWaiting();
							params.getAjax("gjj",resParam);
						}
					}
				}
			});
			//add
			/*var addI = 1;
			var addList = "<div class=\"list\">\n\t\t\t\t<!--缴存满个月-->\n\t\t\t\t<div class=\"mui-table-view\">\n\t\t\t\t\t<div class=\"mui-table-view-cell\">\n\t\t\t\t\t\t<a href=\"#showlx-" + addI + "\">\n\t\t\t\t\t\t\t<div class=\"lx-le\">缴存满个月</div>\n\t\t\t\t\t\t\t<div id=\"info-lx-" + addI + "\" class=\"lx-ri payment-yj\">选择</div>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div id=\"showlx-" + addI + "\" class=\"showlx mui-popover mui-popover-action mui-popover-bottom\" style=\"background-color: #efeef4\">\n\t\t\t\t\t<ul class=\"mui-table-view\" style=\"margin: 0px;border-radius: 0px;font-size: 14px;\">\n\t\t\t\t\t\t<li class=\"mui-table-view-cell popover-bottom\">\n\t\t\t\t\t\t\t<a href=\"#\">6个月</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li class=\"mui-table-view-cell popover-bottom\">\n\t\t\t\t\t\t\t<a href=\"#\">12个月</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t\t<ul class=\"mui-table-view \" style=\"margin: 10px 0px 0px 0px;border-radius: 0px;\">\n\t\t\t\t\t\t<li class=\"mui-table-view-cell popover-bottom-remove\">\n\t\t\t\t\t\t\t<a href=\"#showlx-" + addI + "\">取消</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t<!--税前总收入元-->\n\t\t\t\t<div class=\"mui-table-view\">\n\t\t\t\t\t<div class=\"mui-table-view-cell\">\n\t\t\t\t\t\t<div class=\"lx-le\">缴存基数</div>\n\t\t\t\t\t\t<div class=\"lx-ri\"><span class=\"bd-m lx-ri\">元</span><input class=\"bd-ri price\" placeholder=\"单行输入\" value=\"\" type=\"number\" /></div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n\t\t\t\t<!--还款期限期-->\n\t\t\t\t<div id=\"xl-y-" + addI + "\" class=\" mui-table-view\">\n\t\t\t\t\t<div class=\"mui-table-view-cell\">\n\t\t\t\t\t\t<a href=\"#already-pm-" + addI + "\">\n\t\t\t\t\t\t\t<div class=\"lx-le\">还款期限期</div>\n\t\t\t\t\t\t\t<div id=\"payment-y-" + addI + "\" class=\"payment lx-ri infoone-qx\">选择</div>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div id=\"already-pm-" + addI + "\" class=\"payment-y mui-popover mui-popover-action mui-popover-bottom\" style=\"background-color: #efeef4\">\n\t\t\t\t\t<ul class=\"mui-table-view\" style=\"margin: 0px;border-radius: 0px;font-size: 14px;\">\n\t\t\t\t\t\t<li class=\"mui-table-view-cell popover-bottom\">\n\t\t\t\t\t\t\t<a href=\"#\">12期</span>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li class=\"mui-table-view-cell popover-bottom\">\n\t\t\t\t\t\t\t<a href=\"#\">24期</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li class=\"mui-table-view-cell popover-bottom\">\n\t\t\t\t\t\t\t<a href=\"#\">36期</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li class=\"mui-table-view-cell popover-bottom\">\n\t\t\t\t\t\t\t<a href=\"#\">48期</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li class=\"mui-table-view-cell popover-bottom\">\n\t\t\t\t\t\t\t<a href=\"#\">60期</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t\t<ul class=\"mui-table-view\" style=\"margin: 10px 0px 0px 0px;border-radius: 0px;\">\n\t\t\t\t\t\t<li class=\"mui-table-view-cell popover-bottom-remove\">\n\t\t\t\t\t\t\t<a href=\"#already-pm-" + addI + "\">取消</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t</div>\n";
			params.append(addList);*/
		</script>
	</body>

</html>